﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IronSuit.Utility
{
	public static class ISUtility
	{
		public static string Camel(string strIn)
		{
			string strOut = strIn;
			if (!string.IsNullOrEmpty(strIn))
			{
				strOut = strIn.Replace("_", "");
				if (strOut.Length > 1)				
					strOut = char.ToLower (strOut[0]) + strOut.Substring(1);
				else
					strOut = char.ToLower(strOut[0]).ToString();
			}
			return strOut;
		}
		public static string Pascal(string strIn)
		{
			string strOut = strIn;
			if (!string.IsNullOrEmpty(strIn))
			{
				strOut = strIn.Replace("_", "");
				if (strOut.Length > 1)
					strOut = char.ToUpper(strOut[0]) + strOut.Substring(1);
				else
					strOut = char.ToUpper(strOut[0]).ToString();
			}
			return strOut;
		}
	}
}
